package com.ljf.authority.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 权限组用户授权对象  authority_rel_permission_group_user
 *
 * @author LJF
 * @since 2024-11-19
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("权限组用户授权")
@EqualsAndHashCode(callSuper = true)
@TableName("authority_rel_permission_group_user")
public class AuthorityRelPermissionGroupUser extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link AuthorityRelPermissionGroupUser#COL_ID}
	 */
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	@TableId(value="id", type= IdType.AUTO)
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: char(12)
	 * 注释: 权限组编码
	 * {@link AuthorityRelPermissionGroupUser#COL_GROUP_CODE}
	 */
	@TableField("group_code")
	@JsonProperty("groupCode")
	@ApiModelProperty(value = "权限组编码")
	private String groupCode;

	/**
	 * Java类型: String
	 * 数据库类型: char(9)
	 * 注释: 用户
	 * {@link AuthorityRelPermissionGroupUser#COL_USER}
	 */
	@TableField("user")
	@JsonProperty("user")
	@ApiModelProperty(value = "用户")
	private String user;


	/**
	 * ID
	 * {@link AuthorityRelPermissionGroupUser#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 权限组编码
	 * {@link AuthorityRelPermissionGroupUser#groupCode}
	 */
	public static final String COL_GROUP_CODE = "group_code";
	/**
	 * 用户
	 * {@link AuthorityRelPermissionGroupUser#user}
	 */
	public static final String COL_USER = "user";

}
